home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / comm / tcp / Socks5.lha / Socks5 / src / include / includes.h < prev    next >
C/C++ Source or Header  |  1999-03-10  |  3KB  |  136 lines

  1. /* Copyright (c) 1995-1999 NEC USA, Inc.  All rights reserved.               */
  2. /*                                                                           */
  3. /* The redistribution, use and modification in source or binary forms of     */
  4. /* this software is subject to the conditions set forth in the copyright     */
  5. /* document ("Copyright") included with this distribution.                   */
  6.  
  7. /*
  8.  * $Id: includes.h,v 1.15.2.1.2.6 1999/02/03 22:34:50 steve Exp $
  9.  */
  10.  
  11. #ifndef INCLUDES_H
  12. #define INCLUDES_H
  13.  
  14. /* everybody can include this...it just cleans up the code...                */
  15. /* it might be a bad idea, since it include pretty much everyting...         */
  16.  
  17. #include <sys/types.h>
  18. #include <setjmp.h>
  19.  
  20. #ifdef HAVE_PTHREAD_H
  21. #define POSIX_PTHREAD_SEMANTICS
  22. #if !defined(_REENTRANT) && !defined(_OSF_SOURCE)
  23. #define _REENTRANT
  24. #endif
  25. #if defined(_HPUX_SOURCE) && defined(IN_SERVER)
  26. #include <pthread.h>
  27. #endif
  28. #endif
  29.  
  30. #ifdef TIME_WITH_SYS_TIME
  31. #include <sys/time.h>
  32. #include <time.h>
  33. #elif defined(HAVE_SYS_TIME_H)
  34. #include <sys/time.h>
  35. #elif defined(HAVE_TIME_H)
  36. #include <time.h>
  37. #endif
  38.  
  39. #ifdef HAVE_SYS_SELECT_H
  40. #include <sys/select.h>
  41. #endif
  42.  
  43. #ifdef HAVE_SYS_STAT_H
  44. #include <sys/stat.h>
  45. #endif
  46. #ifdef HAVE_SYS_FILE_H
  47. #include <sys/file.h>
  48. #endif
  49. #ifdef HAVE_SYS_PARAM_H
  50. #include <sys/param.h>
  51. #endif
  52. #ifdef HAVE_SYS_SOCKET_H
  53. #include <sys/socket.h>
  54. #endif
  55. #ifdef HAVE_SYS_UIO_H
  56. #include <sys/uio.h>
  57. #endif
  58.  
  59. #ifdef HAVE_SYS_SOCKIO_H
  60. #include <sys/sockio.h>
  61. #endif
  62. #ifdef HAVE_SYS_SIGNAL_H
  63. #include <sys/signal.h>
  64. #endif
  65. #ifdef HAVE_SYS_WAIT_H
  66. #include <sys/wait.h>
  67. #endif
  68. #ifdef HAVE_SYS_BITYPES_H
  69. #include <sys/bitypes.h>
  70. #endif
  71.  
  72. #include <netinet/in.h>
  73.  
  74. #ifdef HAVE_NETINET_IN_SYSTM_H
  75. #include <netinet/in_systm.h>
  76. #endif
  77.  
  78. #include <pwd.h>
  79. #include <ctype.h>
  80. #include <errno.h>
  81. #include <netdb.h>
  82. #include <stdio.h>
  83. #include <signal.h>
  84. #include <limits.h>
  85. #include <arpa/inet.h>
  86.  
  87. #ifdef HAVE_STDLIB_H
  88. #include <stdlib.h>
  89. #endif
  90. #ifdef HAVE_UNISTD_H
  91. #include <unistd.h>
  92. #endif
  93.  
  94. #ifdef HAVE_STRING_H
  95. #include <string.h>
  96. #endif
  97. #if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
  98. #include <memory.h>
  99. #endif
  100. #ifdef HAVE_STRINGS_H
  101. #include <strings.h>
  102. #endif
  103. #ifdef HAVE_BSTRING_H
  104. #include <bstring.h>
  105. #endif
  106.  
  107. #ifdef HAVE_MALLOC_H
  108. #include <malloc.h>
  109. #endif
  110.  
  111. #ifdef HAVE_FCNTL_H
  112. #include <fcntl.h>
  113. #endif
  114.  
  115. #ifdef HAVE_SYS_FCNTL_H
  116. #include <sys/fcntl.h>
  117. #endif
  118.  
  119. #ifdef HAVE_SYS_IOCTL_H
  120. #include <sys/ioctl.h>
  121. #endif
  122.  
  123. #ifdef HAVE_SYS_FILIO_H
  124. #include <sys/filio.h>
  125. #endif
  126.  
  127. #ifdef HAVE_SHL_LOAD
  128. #include <dl.h>
  129. #endif
  130.  
  131. #ifdef HAVE_DLOPEN
  132. #include <dlfcn.h>
  133. #endif
  134.  
  135. #endif
  136.